package com.pioneer.web.sale.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * SalContract 销售合同
 *
 * @author hlm
 * @date 2025-04-22 08:57:13
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sal_contract_body")
public class SalContractBody extends BaseEntity {

    /**
     * 销售合同子表ID
     */
    @TableId(type = IdType.AUTO)
    private Long contractBodyId;

    /**
     * 销售合同ID
     */
    private Long contractId;

    /**
     * 存货管理
     */
    private Long inventoryId;

    /**
     * 销售数量
     */
    private BigDecimal saleNumber;

    /**
     * 销售单价
     */
    private BigDecimal salePrice;

    /**
     * 销售总价
     */
    private BigDecimal saleTotal;
}
